﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="details.aspx.vb" Inherits="GamerZ.details" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 55px;
            height: 52px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
    <br />

        <asp:DetailsView ID="DetailsView1" runat="server" Height="50px"
            AutoGenerateRows="False" DataSourceID="SqlDataSource1" Width="1000px"  
            HeaderStyle-Width="20%">
        <Fields>
            <asp:BoundField DataField="Gamerz_Name" HeaderText="Game Name"  />
            <asp:BoundField DataField="Gamerz_Publisher" HeaderText="Publisher Name"  />
            <asp:BoundField DataField="Gamerz_Overview" HeaderText="Overview"  />
            <asp:BoundField DataField="Gamerz_Graphics" HeaderText="Graphics Level"  />
            <asp:BoundField DataField="Gamerz_date" HeaderText="Added Date"  />
            <asp:ImageField DataImageUrlField="GamerZ_Image"  DataImageUrlFormatString="/Images/{0}" HeaderText="Details Image">
                <ControlStyle CssClass="Details_Image" /><ControlStyle />
            </asp:ImageField>
            <asp:HyperLinkField DataNavigateUrlFields="Youtube" DataTextField="Youtube"  DataNavigateUrlFormatString="{0}" HeaderText="Youtube Link" />
            <asp:ImageField DataImageUrlField="Gamers_Capture_Img"  DataImageUrlFormatString="/Images/{0}" HeaderText="Capture from the Game">
            </asp:ImageField>
            <asp:BoundField DataField="User_ID" HeaderText="Added by"  />
        </Fields>

        </asp:DetailsView>


    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
        SelectCommand="SELECT [Gamerz_ID], [User_ID], [Gamerz_Name], [Gamerz_Publisher], [Gamerz_Image], [Gamerz_Overview], [Gamerz_Graphics], [Gamerz_date], [Youtube], [Gamers_Capture_Img] FROM [GamerZ] WHERE ([Gamerz_ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="Gamerz_ID" QueryStringField="Game" 
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</p>
<p>
    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="Review_ID" DataSourceID="SqlDataSource2" Width="1000px">
        <Columns>
            <asp:BoundField DataField="Review_Title" HeaderText="Review Title"  SortExpression="Review_Title" />
            <asp:BoundField DataField="Review_Reply" HeaderText="Review Reply"  SortExpression="Review_Reply" />
            <asp:BoundField DataField="Review_Date" HeaderText="Review Date" SortExpression="Review_Date" />
            <asp:BoundField DataField="User_ID" HeaderText="added by"  SortExpression="User_ID" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
        SelectCommand="SELECT [Review_ID], [Review_Title], [Review_Reply], [Review_Date], [User_ID], [GamerZ_ID] FROM [Review] WHERE ([GamerZ_ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="GamerZ_ID" QueryStringField="Game" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    
</p>
    <asp:Panel ID="Panel1" runat="server">
        <p>
        <asp:Image ID="image_like" ImageUrl="../Images/like.png" runat="server" Visible="false" />
        <asp:Button ID="btn_like"  runat="server" Text="Like" />

        <asp:Rating ID="Rating1" runat="server"
        		    WaitingStarCssClass="WaitingStar" 
		            StarCssClass="Star"
		            FilledStarCssClass="FilledStar" 
		            EmptyStarCssClass="EmptyStar" Width="160px" Height="20px">
        </asp:Rating>
            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
            </asp:ToolkitScriptManager>
            <asp:CheckBoxList ID="CheckBoxList1" runat="server" 
                DataSourceID="SqlDataSource4" DataTextField="TagName" DataValueField="ID" 
                RepeatDirection="Horizontal">
            </asp:CheckBoxList>
            Add new Tags seperated by commas:<br />
            <asp:TextBox ID="TB_tags" runat="server" Width="378px"></asp:TextBox>
            <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
                SelectCommand="SELECT [ID], [TagName] FROM [Tags]"></asp:SqlDataSource>
            <br />
            <asp:Button ID="Tag" runat="server" Text="Tag it" />
            <br />
            <asp:Button ID="rate" runat="server" Text="Rate" />
            <table>
                <tr>
                    <td>
                        Title :</td>
                    <td>
                        <asp:TextBox ID="TB_Title" runat="server" Width="600px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Description:
                    </td>
                    <td>
                        <asp:TextBox ID="TB_Review_Reply" runat="server" Height="100px" 
                            TextMode="MultiLine" Width="600px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="BTN_Reply" runat="server" Text="Reply" />
                    </td>
                </tr>
            </table>
            <p>
            </p>
            <p>
            </p>
            <p>
            </p>
        </p>
    </asp:Panel>

</asp:Content>
